// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Router from 'vue-router'
import App from './App'
import router from './router'
import axios from 'axios'
import VueAxios from 'vue-axios'
import $qs from 'qs'
import sha1 from 'sha1'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import layer from 'vue-layer'
import beforeEnterMixin from '@/libs/beforeEnterMixin'
import VDistpicker from 'v-distpicker'
import VueScroller from 'vue-scroller'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.min.css'
import 'babel-polyfill'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(Router)
Vue.use(VueScroller)
Vue.component('v-distpicker', VDistpicker)
Vue.mixin(beforeEnterMixin)
Vue.use(MintUI)
Vue.use(ElementUI)
Vue.use(VueAxios, axios)
Vue.use(VueAwesomeSwiper)
Vue.prototype.$layer = layer(Vue)
Vue.prototype.$qs = $qs
Vue.prototype.$axios = axios
Vue.prototype.$sha1 = sha1
Vue.config.productionTip = false
axios.defaults.baseURL = 'http://api.huiwanzhong365.com'

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

